<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="<%=basePath%>template/common/js/jquery-1.9.1.min.js"></script>
<script src="<%=basePath%>template/common/js/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>template/common/css/Style.css" />
<script type="text/javascript" src="<%=basePath%>template/common/js/function.js"></script>
<script type="text/javascript" src="<%=basePath%>template/common/js/formsubmit.js"></script>
<script type="text/javascript" src="<%=basePath%>template/common/js/dp/js/ui.datepicker-zh-cn.js"></script>
<script type="text/javascript" src="<%=basePath%>template/common/js/dp/js/jquery-ui-timepicker-addon.js"></script>
<link href="<%=basePath%>template/common/js/dp/css/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath%>template/common/js/datetime.js"></script>
<link href="<%=basePath%>template/common/css/defaultTheme.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath%>template/common/css/myTheme.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath%>template/common/css/window.css" type="text/css" rel="stylesheet" />
<script src="<%=basePath%>template/common/js/window.js"></script>
<link href="<%=basePath%>template/common/css/ui.jqgrid.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=basePath%>template/common/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="<%=basePath%>template/common/js/grid.locale-cn.js"></script>
<%-- <script type="text/javascript" src="<%=basePath %>template/common/js/jquery-1.7.js"></script> --%>
<script type="text/javascript" src="<%=basePath %>template/common/js/calendar/WdatePicker.js"></script>
        <link href="../template/common/css/style1.css" rel="stylesheet" type="text/css"/>
        
    <script type="text/javascript">
        function ShowMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if(className.indexOf('curr')==-1)
                document.getElementById('menu' + id).className = 'mouseover';
            else
                document.getElementById('menu' + id).className = 'curr mouseover';
            document.getElementById('ul'+id).style.display = 'block';
        }
        function HideMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if (className.indexOf('curr') == -1)
                document.getElementById('menu' + id).className = '';
            else
                document.getElementById('menu' + id).className = 'curr';
            document.getElementById('ul' + id).style.display = 'none';
        }
        var oldOld = null;
        function ShowMenuDd(obj) {
            if (oldOld == obj) return;
            if (oldOld != null) {
                oldOld.className = '';
            }
            obj.className = 'visible';
            oldOld = obj;
        }

        var speed3 = 10; //速度数值越大速度越慢
        var maxWidth = 0;
        window.onload = function () {
            maxWidth = document.getElementById("divScrollCommend").scrollWidth;
            document.getElementById("tdScroll2").innerHTML = document.getElementById("tdScroll1").innerHTML;
            var MyMar = setInterval(Marquee, speed3);
            document.getElementById("divScrollCommend").onmouseover = function () { clearInterval(MyMar) }
            document.getElementById("divScrollCommend").onmouseout = function () { MyMar = setInterval(Marquee, speed3) }
        }

        function Marquee() {
            var left = parseInt(document.getElementById("divScrollCommend").style.left);
            if (left + maxWidth == 0) {
                left = 0;
            }
            else {
                left--;
            }
            document.getElementById("divScrollCommend").style.left = left + 'px';
        }
    </script>
    </head>
    <body>
    	<jsp:include page="../common/header.jsp" flush="true" />               
        <div class="Container">
            <div class="inquiry_box">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    	<tr>
                            <td><strong><font color="red">Welcome to 雅鹿电子商务报表分析平台</font></strong></td>
                        </tr>
                       
                    </tbody>
                </table>
            </div>
        </div>
        <br />
        <script>
                            $(document).ready(function(){
                                $('input[name="api_type"]').each(function(){                       
                                    $(this).change(function(){
                                        var api_id = $(this).attr("id");
                                        switch(api_id){
                                            case "edbInStoreGet":                                    
                                            case "edbOutStoreGet":
                                                $('#type').attr("disabled", false);
                                                $('#date_type').attr("disabled", false);
                                                $('#end_time').attr("disabled", true);
                                                $('#begin_time').attr("disabled", true);
                                                break;
                                            case "edbProductBaseInfoGet":
                                              
                                            case "edbTradReturnGet":
                                                $('#type').attr("disabled", true);
                                                $('#date_type').attr("disabled", true);
                                                $('#end_time').attr("disabled", false);
                                                $('#begin_time').attr("disabled", false);
                                                break;
                                            case "edbTradeGet":
                                                $('#type').attr("disabled", true);
                                                $('#date_type').attr("disabled", false);
                                                $('#end_time').attr("disabled", false);
                                                $('#begin_time').attr("disabled", false);
                                                break;
                                        }
                                        
                                    });
                                });
                            })
        </script>
     <div class="wrapdown">
        <div class="footer">
            <script type="text/javascript" src="../common/layout/footer.js"></script>
        </div>
    </div>                     
    </body>
    <!-- InstanceEnd -->
</html>